package com.dsk.connector;

import cn.hutool.core.date.DateUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.env.Environment;

import java.net.InetAddress;
import java.util.Date;

@SpringBootApplication
@ComponentScan(basePackages = "com.dsk")
public class TransStarter {
    public static void main(String[] args) {
        try {
            ConfigurableApplicationContext application = SpringApplication.run(TransStarter.class, args);
            System.out.println(
                    "\n\t" +
                            "----------------------------------------------------------\n\t" +
                            "Application DataTrans is running! \n\t" +
                            "current time is " + DateUtil.format(new Date(),"yyyy-MM-dd HH:mm:ss") + "\n\t"+
                            "------------------------------------------------------------");
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }
}